<%-- 
    Document   : assign_project
    Created on : Mar 18, 2010, 2:01:51 PM
    Author     : stanley.2007
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="common.jsp" %>
<%            // Main Application Logic Comes Here

%>

<HTML>
    <c:set var="title" value="MIC Tycoon ~ Assign Project Page"/>
    <%@ include file="htmlheader.jsp" %>

    <body>
        <div id="resolution">

            <%@ include file="header.jsp" %>
            <%@ include file="menu.jsp" %>

            <div class="content">

                <div id="manage_project">
                <img src="<%= realURL("", url)%>images/titles/assign-emp.png" border="0" />

                <c:set var="action" value="./assign"/>
                <c:if test="${outsource !=null}">
                    <c:set var="action" value="./assign_outsource"/>
                </c:if>

                <form action="${assign}" method="POST">

                    <c:if test="${outsource!=null}">
                        <input type="hidden" name="outsource" value="${outsource}" />
                    </c:if>
                    <input type="hidden" name="employee_ids" value="${employee_ids}" />

                    <!-- TRAIN EMPLOYEE -->
                    <div id="paper-holder-landscape-small">

                        <div id="deadline-holder-landscape">${project.due_turn}</div>
                        
                        <div id="paper-content-over-project">

                        </div>

                        <div id="paper-content-over-project">
                            <c:if test="${project.man_hours_dot_net ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_dot_net !=0}"><div id="manhours-on">${project.man_hours_dot_net}</div></c:if>
                            <c:if test="${project.man_hours_c_sharp ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_c_sharp !=0}"><div id="manhours-on">${project.man_hours_c_sharp}</div></c:if>
                            <c:if test="${project.man_hours_jsp ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_jsp !=0}"><div id="manhours-on">${project.man_hours_jsp}</div></c:if>
                            <c:if test="${project.man_hours_php ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_php !=0}"><div id="manhours-on">${project.man_hours_php}</div></c:if>
                            <c:if test="${project.man_hours_ruby ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_ruby !=0}"><div id="manhours-on">${project.man_hours_ruby}</div></c:if>
                            <c:if test="${project.man_hours_mysql ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_mysql !=0}"><div id="manhours-on">${project.man_hours_mysql}</div></c:if>
                            <c:if test="${project.man_hours_mssql ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_mssql !=0}"><div id="manhours-on">${project.man_hours_mssql}</div></c:if>
                            <c:if test="${project.man_hours_oracle ==0}"><div id="manhours-off">&nbsp;</div></c:if>
                            <c:if test="${project.man_hours_oracle !=0}"><div id="manhours-on">${project.man_hours_oracle}</div></c:if>
                        </div>

                        <div id="paper-content-landscape">
                            <b>Project </b>[<b>#${project.project_id}</b>] Company Name
                            <br/>
                            <b>Payout:</b> ${project.bidded_price_string}

                            <br/><b>Remaining Hours:</b><br />

                            <img src="<%= realURL("", url)%>images/logos/logo-levels-h.png" border="0" />
                        </div>
                    </div>
                    <br/>
                    <img src="<%= realURL("", url)%>images/titles/available-emp.png" border="0" />
                    <div align="center">
                        <input type="submit" value="Assign Employee!"/>
                    </div>
                    <c:forEach items="${employee_list}" var="employee">

                        <div id="paper-holder-landscape-small">
                            <div id="paper-content-over-assign">
                                <c:if test="${employee.skillPoints_dot_net ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_dot_net !=0}"><div id="lvl-on">${employee.skillPoints_dot_net}</div></c:if>
                                <c:if test="${employee.skillPoints_c_sharp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_c_sharp !=0}"><div id="lvl-on">${employee.skillPoints_c_sharp}</div></c:if>
                                <c:if test="${employee.skillPoints_jsp ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_jsp !=0}"><div id="lvl-on">${employee.skillPoints_jsp}</div></c:if>
                                <c:if test="${employee.skillPoints_php ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_php !=0}"><div id="lvl-on">${employee.skillPoints_php}</div></c:if>
                                <c:if test="${employee.skillPoints_ruby ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_ruby !=0}"><div id="lvl-on">${employee.skillPoints_ruby}</div></c:if>
                                <c:if test="${employee.skillPoints_mysql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_mysql !=0}"><div id="lvl-on">${employee.skillPoints_mysql}</div></c:if>
                                <c:if test="${employee.skillPoints_mssql ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_mssql !=0}"><div id="lvl-on">${employee.skillPoints_mssql}</div></c:if>
                                <c:if test="${employee.skillPoints_oracle ==0}"><div id="lvl-off">&nbsp;</div></c:if>
                                <c:if test="${employee.skillPoints_oracle !=0}"><div id="lvl-on">${employee.skillPoints_oracle}</div></c:if>
                            </div>

                            <div id="paper-content-landscape">
                                <b>Employee Assignment:</b> [<b>#${employee.employee_id}</b>] <br />
                                <b>Hours remaining:</b> ${employee.hours_remaining}
                                <br/><b>Assign Employee:</b><br />
                                <img src="<%= realURL("", url)%>images/logos/logo-levels-h.png" border="0" />

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_dot_net > 0 && employee.skillPoints_dot_net>0 }">
                                        <input type="text" class="enter-hours" name="dot_net!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_c_sharp > 0 && employee.skillPoints_c_sharp>0}">
                                        <input type="text" class="enter-hours" name="c_sharp!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_jsp > 0 && employee.skillPoints_jsp>0}">
                                        <input type="text" class="enter-hours"  name="jsp!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_php > 0 && employee.skillPoints_php>0}">
                                        <input type="text" class="enter-hours"  name="php!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_ruby > 0 && employee.skillPoints_ruby > 0}">
                                        <input type="text" class="enter-hours"  name="ruby!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_mysql > 0 && employee.skillPoints_mysql > 0}">
                                        <input type="text" class="enter-hours"  name="mysql!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_mssql > 0 && employee.skillPoints_mssql > 0}">
                                        <input type="text" class="enter-hours"  name="mssql!${employee.employee_id}"/>
                                    </c:if>
                                </div>

                                <div id="assign-grid">
                                    <c:if test="${project.man_hours_oracle > 0 && employee.skillPoints_oracle > 0}">
                                        <input type="text" class="enter-hours"  name="oracle!${employee.employee_id}"/>
                                    </c:if>
                                </div>
                            </div>
                        </div>
                    </c:forEach>

                    


                </form>

            </div>
            </div>
        </div>

    </BODY>
</HTML>